// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import App from './App'
import router from './router'
import settings from "./settings"

import axios from "axios"
// 禁止ajax 携带cookie
axios.defaults.withCredentials = false; // false表示阻止ajax携带cookie
Vue.prototype.$axios = axios; // 将axios对象挂载到vue对象中

Vue.config.productionTip = false;
// 将settings 文件对象 添加到 Vue 对象中
Vue.prototype.$settings = settings;


// 配置 element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
// 调用 ElementUI 插件
Vue.use(ElementUI);


// 导入 css 初始化文件
import '../static/css/reset.css'


//导入极验的sdk
import "../static/js/gt.js"


// vue-video-player //视频播放器
require("video.js/dist/video-js.css");
require("vue-video-player/src/custom-theme.css");
import VideoPlayer from 'vue-video-player'

Vue.use(VideoPlayer);


// 导入vuex
import store from "./store/index"


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store, // 将store注册到vue对象中
  components: {App},
  template: '<App/>'
});
